<div id="preject">
    {switch $type}
    {case 1}
    <div id="user"><a  id="chocse" href="{:url('find')}?type=1">学生</a><a href="{:url('find')}?type=2">教工</a><a href="{:url('find')}?type=3" >校外</a></div>
    <input type="hidden" name="type" value="1" >
    <div class="item"><input type="number" name="stuid"  required onchange="getstuid(this)" placeholder="学号"></div>
    <div class="item"><input type="email" name="email" required  placeholder="邮箱"></div>
    <div class="item"><input type="number" name="phone" required onchange="getphone(this)"  placeholder="手机号码"></div>
    <div class="item"><input type="text" name="captcha"  placeholder="验证码"></div>
    <div class="item"><img src="{:captcha_src()}"  id="img"  alt="captcha" /></div>
    <div class="item"><input  type="submit" value="登　录"  onclick="find()"></div>
    {/case}

    {case 2}
    <div id="user"><a  href="{:url('find')}?type=1">学生</a><a href="{:url('find')}?type=2"  id="chocse">教工</a><a href="{:url('find')}?type=3" >校外</a></div>

    <input type="hidden" name="type" value="2">
    <div class="item"><input type="text" name="name" required onchange="getname(this)" placeholder="姓名"></div>
    <div class="item"><input type="email" name="email" required  placeholder="邮箱"></div>
    <div class="item"><input type="number" name="phone" required onchange="getphone(this)"  placeholder="手机号码"></div>
    <div class="item"><input type="text" name="captcha"  placeholder="验证码"></div>
    <div class="item"><img src="{:captcha_src()}"  id="img"  alt="captcha" /></div>
    <div class="item"><input  type="submit" value="登　录"  onclick="find()"></div>

    {/case}

    {case 3}
    <div id="user"><a  href="{:url('find')}?type=1">学生</a><a href="{:url('find')}?type=2" >教工</a><a href="{:url('find')}?type=3"  id="chocse">校外</a></div>

    <input type="hidden" name="type" value="3">
    <div class="item"><input type="text" name="name" required onchange="getname(this)" placeholder="姓名"></div>
    <div class="item"><input type="email" name="email" required  placeholder="邮箱"></div>
    <div class="item"><input type="number" name="phone" required onchange="getphone(this)"  placeholder="手机号码"></div>
    <div class="item"><input type="text" name="captcha"  placeholder="验证码"></div>
    <div class="item"><img src="{:captcha_src()}"  id="img"  alt="captcha" /></div>
    <div class="item"><input  type="submit" value="登　录"  onclick="find()"></div>

    {/case}
    {/switch}
</div>